package com.picket.dao;

import java.util.Collection;

import com.picket.domain.Event;
 
public class EventDao extends BaseDao implements IEventDao {
 
	@Override
 public Event create(final Event event) {
		if(event.getUpdateUserId() == null){
			event.setUpdateUserId("admin");
		}
		if(event.getCreateUserId() == null){
			event.setCreateUserId("admin");
		}
		Integer id = (Integer) getSqlMapClientTemplate().insert("insert", event);
		event.setId(id);
		return event;
 }
 
 @Override
 public Collection<Event> getAllEvents() {
 
 return null;
 }
 
 
 @Override
 public Event getEvent(long id) {
 return null;
 }
}



